﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000545 RID: 1349
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FightFestChallengeLevel : IMessage<FightFestChallengeLevel>, IMessage, IEquatable<FightFestChallengeLevel>, IDeepCloneable<FightFestChallengeLevel>, IBufferMessage
	{
		// Token: 0x1700116B RID: 4459
		// (get) Token: 0x06003CD6 RID: 15574 RVA: 0x000A7C4B File Offset: 0x000A5E4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FightFestChallengeLevel> Parser
		{
			get
			{
				return FightFestChallengeLevel._parser;
			}
		}

		// Token: 0x1700116C RID: 4460
		// (get) Token: 0x06003CD7 RID: 15575 RVA: 0x000A7C52 File Offset: 0x000A5E52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FightFestChallengeLevelReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700116D RID: 4461
		// (get) Token: 0x06003CD8 RID: 15576 RVA: 0x000A7C64 File Offset: 0x000A5E64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FightFestChallengeLevel.Descriptor;
			}
		}

		// Token: 0x06003CD9 RID: 15577 RVA: 0x000A7C6B File Offset: 0x000A5E6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightFestChallengeLevel()
		{
		}

		// Token: 0x06003CDA RID: 15578 RVA: 0x000A7C74 File Offset: 0x000A5E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightFestChallengeLevel(FightFestChallengeLevel other) : this()
		{
			this.challengeId_ = other.challengeId_;
			this.turnLeftCount_ = other.turnLeftCount_;
			this.feverId_ = other.feverId_;
			this.feverTimeRank_ = other.feverTimeRank_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003CDB RID: 15579 RVA: 0x000A7CC8 File Offset: 0x000A5EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightFestChallengeLevel Clone()
		{
			return new FightFestChallengeLevel(this);
		}

		// Token: 0x1700116E RID: 4462
		// (get) Token: 0x06003CDC RID: 15580 RVA: 0x000A7CD0 File Offset: 0x000A5ED0
		// (set) Token: 0x06003CDD RID: 15581 RVA: 0x000A7CD8 File Offset: 0x000A5ED8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x1700116F RID: 4463
		// (get) Token: 0x06003CDE RID: 15582 RVA: 0x000A7CE1 File Offset: 0x000A5EE1
		// (set) Token: 0x06003CDF RID: 15583 RVA: 0x000A7CE9 File Offset: 0x000A5EE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TurnLeftCount
		{
			get
			{
				return this.turnLeftCount_;
			}
			set
			{
				this.turnLeftCount_ = value;
			}
		}

		// Token: 0x17001170 RID: 4464
		// (get) Token: 0x06003CE0 RID: 15584 RVA: 0x000A7CF2 File Offset: 0x000A5EF2
		// (set) Token: 0x06003CE1 RID: 15585 RVA: 0x000A7CFA File Offset: 0x000A5EFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FeverId
		{
			get
			{
				return this.feverId_;
			}
			set
			{
				this.feverId_ = value;
			}
		}

		// Token: 0x17001171 RID: 4465
		// (get) Token: 0x06003CE2 RID: 15586 RVA: 0x000A7D03 File Offset: 0x000A5F03
		// (set) Token: 0x06003CE3 RID: 15587 RVA: 0x000A7D0B File Offset: 0x000A5F0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightFestBattleRank FeverTimeRank
		{
			get
			{
				return this.feverTimeRank_;
			}
			set
			{
				this.feverTimeRank_ = value;
			}
		}

		// Token: 0x06003CE4 RID: 15588 RVA: 0x000A7D14 File Offset: 0x000A5F14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FightFestChallengeLevel);
		}

		// Token: 0x06003CE5 RID: 15589 RVA: 0x000A7D24 File Offset: 0x000A5F24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FightFestChallengeLevel other)
		{
			return other != null && (other == this || (this.ChallengeId == other.ChallengeId && this.TurnLeftCount == other.TurnLeftCount && this.FeverId == other.FeverId && this.FeverTimeRank == other.FeverTimeRank && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003CE6 RID: 15590 RVA: 0x000A7D90 File Offset: 0x000A5F90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this.TurnLeftCount != 0U)
			{
				num ^= this.TurnLeftCount.GetHashCode();
			}
			if (this.FeverId != 0U)
			{
				num ^= this.FeverId.GetHashCode();
			}
			if (this.FeverTimeRank != FightFestBattleRank.C)
			{
				num ^= this.FeverTimeRank.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003CE7 RID: 15591 RVA: 0x000A7E20 File Offset: 0x000A6020
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003CE8 RID: 15592 RVA: 0x000A7E28 File Offset: 0x000A6028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003CE9 RID: 15593 RVA: 0x000A7E34 File Offset: 0x000A6034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TurnLeftCount != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.TurnLeftCount);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this.FeverId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.FeverId);
			}
			if (this.FeverTimeRank != FightFestBattleRank.C)
			{
				output.WriteRawTag(120);
				output.WriteEnum((int)this.FeverTimeRank);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003CEA RID: 15594 RVA: 0x000A7EC8 File Offset: 0x000A60C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this.TurnLeftCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TurnLeftCount);
			}
			if (this.FeverId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FeverId);
			}
			if (this.FeverTimeRank != FightFestBattleRank.C)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.FeverTimeRank);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003CEB RID: 15595 RVA: 0x000A7F50 File Offset: 0x000A6150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FightFestChallengeLevel other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			if (other.TurnLeftCount != 0U)
			{
				this.TurnLeftCount = other.TurnLeftCount;
			}
			if (other.FeverId != 0U)
			{
				this.FeverId = other.FeverId;
			}
			if (other.FeverTimeRank != FightFestBattleRank.C)
			{
				this.FeverTimeRank = other.FeverTimeRank;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003CEC RID: 15596 RVA: 0x000A7FC8 File Offset: 0x000A61C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003CED RID: 15597 RVA: 0x000A7FD4 File Offset: 0x000A61D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 24U)
					{
						this.TurnLeftCount = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.ChallengeId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.FeverId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.FeverTimeRank = (FightFestBattleRank)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400182D RID: 6189
		private static readonly MessageParser<FightFestChallengeLevel> _parser = new MessageParser<FightFestChallengeLevel>(() => new FightFestChallengeLevel());

		// Token: 0x0400182E RID: 6190
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400182F RID: 6191
		public const int ChallengeIdFieldNumber = 7;

		// Token: 0x04001830 RID: 6192
		private uint challengeId_;

		// Token: 0x04001831 RID: 6193
		public const int TurnLeftCountFieldNumber = 3;

		// Token: 0x04001832 RID: 6194
		private uint turnLeftCount_;

		// Token: 0x04001833 RID: 6195
		public const int FeverIdFieldNumber = 10;

		// Token: 0x04001834 RID: 6196
		private uint feverId_;

		// Token: 0x04001835 RID: 6197
		public const int FeverTimeRankFieldNumber = 15;

		// Token: 0x04001836 RID: 6198
		private FightFestBattleRank feverTimeRank_;
	}
}
